<!--S 主体-->
<div class="main" id="my_photo">
  <!--S 主页导航-->
  <%= render(:partial => "/shared/profile_nav") %>
  <!--S 照片列表-->
  <div id="my_album_list" class="mod album_list">
    <!--S 模块头部-->
    <div class="mod_head bor_b_4">
      <h3><%= @member[:nick] %>的相册</h3>
      <p class="op_link">
         <%= link_to '创建新相册',"javascript:void(0)", {:id=>"show_album_new_window"} if current?@member%>
        <a href="/user/photoset.htm">相册设置</a>　<a href="javascript:goURL('qzone',getUin()+'/photo')">管理相册</a>　<span class="c_2">|</span>　<%=image_tag "icon.gif", :alt=>"上传照片", :title=>"上传照片", :class=>"icon_photo"%><%= link_to '上传照片', new_photo_path if current?@member%>
      </p>
    </div>
    <!--E 模块头部-->
    <!--S 列表-->
    <div class="list">
      <% if @albums.blank? %>
      <p class="tips_2" id="nophototip">
        你的相册设置为“不显示空间相册”，其他人无法在城市达人看到你的相册。可点击右上角的“相册设置”按钮修改设置
        <a href="javascript:void(0)" id="show_album_new_window">创建新相册</a>
      </p>
      <% end %>
      <ul id="photolist">
        <% @albums.each do |album| %>
        <li>
          <div class="album_tit">
            <h4><%= link_to "#{h album[:name]}", "/photolist/#{@member[:id]}/#{album[:id]}" %></h4>
            <p class="c_2">共 <%= album.photos.size %> 张</p>
            <p class="c_2"><%=h album[:intro] if album[:intro]%></p>
            <p class="c_2">创建于:<%= status_time_ago_in_words album[:created_at] %></p>
            <p class="c_2">修改于:<%= status_time_ago_in_words album[:updated_at] %></p>
            <% if current? @member %>
              <p class="c_2"><%= link_to "编辑相册", edit_member_album_path(@member,album) %></p>
            <%end%>
          </div>
          <div class="album_box bor_4">
            <div class="bor_r_4 bor_b_4 album_cont">
              <p class="photo">
                <span></span>
                <a href="/photolist/<%= @member[:id] %>/<%= album[:id] %>" title="<%=h album[:name]%>">
                  <% if album.photos.blank? %>
                    <%= image_tag "#" ,:alt => "#{album[:name]}" %>
                  <% else %>
                    <%= image_tag album.photos.first.public_filename(:list),:alt => "#{album[:name]}" %>
                  <% end %>
                </a>
              </p>
            </div>
          </div>
        </li>
        <% end %>
      </ul>
    </div>
    <!--S 列表-->
    <div class="page_tags" id="page">
      <%= will_paginate @albums %>
    </div>
  </div>
  <!--E 照片列表-->
</div>
<!--E 主体-->
<%= render(:partial => "album_new_form") %>